home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / man / RCS / man.man,v < prev   
Encoding:
Text File  |  1991-09-04  |  7.5 KB  |  273 lines

  1. head     1.6;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    shirriff:1.6; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.6
  10. date     91.01.08.21.48.08;  author tve;  state Exp;
  11. branches ;
  12. next     1.5;
  13.  
  14. 1.5
  15. date     89.01.13.17.05.17;  author ouster;  state Exp;
  16. branches ;
  17. next     1.4;
  18.  
  19. 1.4
  20. date     89.01.13.16.50.42;  author ouster;  state Exp;
  21. branches ;
  22. next     1.3;
  23.  
  24. 1.3
  25. date     89.01.11.15.25.02;  author ouster;  state Exp;
  26. branches ;
  27. next     1.2;
  28.  
  29. 1.2
  30. date     88.12.30.09.44.51;  author ouster;  state Exp;
  31. branches ;
  32. next     1.1;
  33.  
  34. 1.1
  35. date     88.12.28.17.09.05;  author ouster;  state Exp;
  36. branches ;
  37. next     ;
  38.  
  39.  
  40. desc
  41. @@
  42.  
  43.  
  44. 1.6
  45. log
  46. @Added mention of PAGER environment variable.
  47. @
  48. text
  49. @' $Header: /a/newcmds/man/RCS/man.man,v 1.5 89/01/13 17:05:17 ouster Exp $ SPRITE (Berkeley)
  50. .so \*(]ltmac.sprite
  51. .HS MAN cmds
  52. .BS
  53. .SH NAME
  54. man \- Print entries in the user reference manual
  55. .SH SYNOPSIS
  56. \fBman\fR [\fIoptions\fR] [\fIsectionNumber\fR] \fIentryName entryName ...\fR
  57. .SH OPTIONS
  58. .IP "\fB\-c \fIconfigFile\fR" 15
  59. \fBMan\fR normally looks in the file \fB/sprite/lib/man/config\fR for
  60. information about where the man pages are.  If the \fB\-c\fR switch is given,
  61. then \fBman\fR uses \fIconfigFile\fR instead.
  62. .IP "\fB\-i\fR" 15
  63. Generate index.  Instead of printing manual entries, treat each
  64. \fIentryName\fR as a file name.  Read all the files, and output index
  65. information on standard output.
  66. .IP "\fB\-help\fR" 15
  67. Print a summary of the command-line options and exit without printing
  68. any manual pages.
  69. .IP "\fB\-k\fR" 15
  70. Keyword search.  Instead of printing manual entries, treat each \fIentryName\fR
  71. argument as a keyword, search the manual indexes for information about
  72. the keywords, and print all the matching index entries.
  73. .IP "\fB\-r\fR" 15
  74. Normally, \fBman\fR retains formatted versions of man pages for faster printing.
  75. It only reformats a man page if there is no formatted version or if the
  76. source is newer than the formatted version.  This switch causes \fBman\fR to
  77. reformat the man page even if the formatted copy appears to be up-to-date.
  78. .IP "\fB\-s \fIsectionName\fR" 15
  79. Check only in section \fIsectionName\fR of the manual for the desired
  80. entries.
  81. .IP "\fB\-t\fR" 15
  82. Print the manual entries on the printer instead of on
  83. standard output.
  84. .IP "\fB\-\fR" 15
  85. \fBMan\fR normally filters the man pages through \fBmore -s\fR to break up
  86. the output and process underline and boldface requests.  If the \fB\-\fR
  87. switch is given, then the \fBmore\fR filter is omitted, and the \fBnroff\fR
  88. output is passed directly to standard output. The \fBPAGER\fP environment
  89. variable can be set to the name of a program to use instead of \fBmore\fP.
  90. .BE
  91.  
  92. .SH DESCRIPTION
  93. .PP
  94. The \fBman\fR program locates and prints one or more entries of the
  95. Sprite reference manual.  The entries are given by the \fIentryName\fR
  96. arguments;  these are usually the names of programs or library
  97. procedures.  Normally, \fBman\fR searches the entire manual and invokes
  98. \fBmore\fR to print the
  99. first entry that matches each \fIentryName\fR.  The manual is divided
  100. into sections, and it is possible for the same name to be used for
  101. entries in different sections.  You may use the
  102. \fB\-s\fR switch to specify a particular section;  in this case, \fBman\fR
  103. will look only in the named section.  Section names include both the
  104. traditional UNIX names (\fB1\fR, \fB2\fR, etc.) and the Sprite names
  105. (\fBcmds\fR, \fBlib\fR, \fBlib/c\fR, \fBdev\fR, etc.).
  106. You may specify a section name without the \fB\-s\fR switch
  107. if the section name starts with a number and is entered as the first
  108. \fIentryName\fR.
  109. .PP
  110. The default configuration file causes the current directory to be
  111. searched for the desired manual entry before the system directories.
  112. If there is a file \fIentryName\fB.man\fR in the current directory,
  113. then it will be printed in preference to any entries in the system
  114. area.
  115. .PP
  116. The \fB\-i\fR switch causes \fBman\fR to generate an index
  117. instead of printing a manual page.  Each \fIentryName\fR argument
  118. is taken to be a file name.  \fBMan\fR will read all the files and
  119. output index information for them on standard output.  Normally, each
  120. directory containing installed unformatted manual entries also has
  121. a file named \fBindex\fR containing index information for all the files
  122. in the directory.  When printing manual entries, if \fBman\fR cannot
  123. locate a file for a given \fIentryName\fR, then it reads the \fBindex\fR
  124. files to see if \fIentryName\fR is an alternate name for some other
  125. manual entry (an alternate name is any name listed in the \fBNAME\fR
  126. section of the entry).
  127. .PP
  128. The \fB\-k\fR switch causes \fBman\fR to perform a keyword search instead
  129. of printing a manual page.  Each \fIentryName\fR argument is taken to
  130. be a keyword, and \fBman\fR searches all the \fBindex\fR files for
  131. entries that match the keywords.
  132. Each matching entry is printed on standard output in a human-readable form.
  133. A keyword matches an index entry if
  134. it is a substring of any of the entry's name, synopsis, or keyword fields.
  135.  
  136. .SH FILES
  137. /sprite/lib/man/config \- default configuration file
  138.  
  139. .SH KEYWORDS
  140. help, index, keyword, manual, reference, section
  141. @
  142.  
  143.  
  144. 1.5
  145. log
  146. @Cleanup typos.
  147. @
  148. text
  149. @d1 1
  150. a1 1
  151. ' $Header: /a/newcmds/man/RCS/man.man,v 1.3 89/01/11 15:25:02 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  152. d40 2
  153. a41 1
  154. output is passed directly to standard output.
  155. @
  156.  
  157.  
  158. 1.4
  159. log
  160. @Added "-i", "-k", and "-f" switches.
  161. @
  162. text
  163. @d14 1
  164. a14 1
  165. .IP "\fB-i\fR" 15
  166. d67 1
  167. a67 1
  168. The \fB-i\fR switch causes \fBman\fR to generate an index
  169. d70 1
  170. a70 1
  171. outputs index information for them on standard output.  Normally, each
  172. d79 1
  173. a79 1
  174. The \fB-k\fR switch causes \fBman\fR to perform a keyword search instead
  175. d82 1
  176. a82 2
  177. entries that match the keywords (a keyword matches an index entry if
  178. it is a substring of any of the entry's name, synopsis, or keyword fields).
  179. d84 2
  180. @
  181.  
  182.  
  183. 1.3
  184. log
  185. @Document current directory mechanism.
  186. @
  187. text
  188. @d1 1
  189. a1 1
  190. ' $Header: /a/newcmds/man/RCS/man.man,v 1.2 88/12/30 09:44:51 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  191. d13 12
  192. a24 1
  193. then \fBman\fR uses \fIconfigFile\fR instead. 
  194. a32 3
  195. .IP "\fB\-help\fR" 15
  196. Print a summary of the command-line options and exit without printing
  197. any manual pages.
  198. d66 19
  199. d90 1
  200. a90 1
  201. help, manual, reference, section
  202. @
  203.  
  204.  
  205. 1.2
  206. log
  207. @More format upgrades.
  208. @
  209. text
  210. @d1 1
  211. a1 1
  212. ' $Header: /a/newcmds/man/RCS/man.man,v 1.1 88/12/28 17:09:05 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  213. d40 1
  214. a40 1
  215. procedures.  Normally, \fBman\fR searches the entire manual invokes
  216. d48 2
  217. a49 2
  218. (\fBcmds\fR, \fBlib\fR, \fBlib/c\fR, etc.).  You may specify a section name
  219. without the \fB\-s\fR switch
  220. d52 9
  221. @
  222.  
  223.  
  224. 1.1
  225. log
  226. @Initial revision
  227. @
  228. text
  229. @d1 1
  230. a1 1
  231. ' $Header: /a/newcmds/update/RCS/update.man,v 1.3 88/12/28 11:37:36 ouster Exp $ SPRITE (Berkeley)
  232. d10 6
  233. a15 6
  234. .IP "\fB-c \fIconfigFile\fR" 15
  235. Man normally looks in the file \fB/sprite/lib/man/config\fR for
  236. information about where the man pages are.  If the \fB-c\fR switch is given,
  237. then Man uses \fIconfigFile\fR instead. 
  238. .IP "\fB-r\fR" 15
  239. Normally, Man retains formatted versions of man pages for faster printing.
  240. d17 1
  241. a17 1
  242. source is newer than the formatted version.  This switch causes Man to
  243. d19 1
  244. a19 1
  245. .IP "\fB-s \fIsectionName\fR" 15
  246. d22 1
  247. a22 1
  248. .IP "\fB-help\fR" 15
  249. d25 1
  250. a25 1
  251. .IP "\fB-t\fR" 15
  252. d28 3
  253. a30 3
  254. .IP "\fB-\fR" 15
  255. Man normally filters the man pages through \fBmore -s\fR to break up
  256. the output and process underline and boldface requests.  If the \fB-\fR
  257. d37 1
  258. a37 1
  259. The Man program locates and prints one or more entries of the
  260. d40 1
  261. a40 1
  262. procedures.  Normally, Man searches the entire manual invokes
  263. d45 1
  264. a45 1
  265. \fB-s\fR switch to specify a particular section;  in this case, Man
  266. d49 1
  267. a49 1
  268. without the \fB-s\fR switch
  269. d51 1
  270. a51 1
  271. ``entry name''.
  272. @
  273.